// pages/home-combo/home-combo.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    detailData: {
      title: '丰田-埃尔法-Toyota Alphard内饰改装套餐',
      images: [
        'http://localhost:8000/images/home-3.png',
        'http://localhost:8000/images/item-2.png',
        'http://localhost:8000/images/item-3.png',
        'http://localhost:8000/images/home-3.png',
        'http://localhost:8000/images/item-5.png'
      ],
      combos: [{
        id: '1',
        title: '套餐1',
        image: 'http://localhost:8000/images/taocan-1.png'
      }, {
        id: '2',
        title: '套餐2',
        image: 'http://localhost:8000/images/taocan-2.png'
      }, {
        id: '3',
        title: '套餐3',
        image: 'http://localhost:8000/images/taocan-3.png'
      }, {
        id: '4',
        title: '套餐4',
        image: 'http://localhost:8000/images/taocan-3.png'
      }, {
        id: '5',
        title: '套餐5',
        image: 'http://localhost:8000/images/taocan-1.png'
      }, {
        id: '6',
        title: '套餐6',
        image: 'http://localhost:8000/images/taocan-2.png'
      }, {
        id: '7',
        title: '套餐7',
        image: 'http://localhost:8000/images/taocan-2.png'
      }, {
        id: '8',
        title: '套餐8',
        image: 'http://localhost:8000/images/taocan-1.png'
      }, {
        id: '9',
        title: '套餐9',
        image: 'http://localhost:8000/images/taocan-1.png'
      }]
    }
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  goDetail() {
    wx.navigateTo({
      url: '/pages/home-combo-detail/home-combo-detail',
    })
  },

  goCoreItem() {
    wx.navigateTo({
      url: '/pages/home-item/home-item',
    })
  },

  showVideo() {
    wx.navigateTo({
      url: '/pages/index/index',
    })
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})